<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/WEB-INF/util_file/common.jspf"%>
<style>
#admin_product {
	font: 12px/1.2 "돋움", dotum, bold;
}

th {
	background-color: #f1f1f1
}
</style>

<script type="text/javascript" src="/jeons/js/jquery.ui.datepicker.js"></script>
<script type="text/javascript" src="/jeons/js/jquery.ui.datepicker-ko.js"></script>
<script src="/jeons/js/jquery.MultiFile.js" type="text/javascript"></script>
<script type="text/javascript">
	$(document).ready( function(){
		 $("#rgdate").datepicker({
				changeMonth:true,
			  changeYear:true  
		 });
		 
		if ($("#prono").val() != 0 || $("#prono").val() != null) {
			$("#uplod").hide();
		}
	});
</script>
<div id="admin_product">
	<div id="product_title">
		<img src="/jeons/images/titledot.gif" />제품 등록
	</div>
	<form:form commandName="cpu" method="post" id="cpu" enctype="multipart/form-data">
	<form:hidden path="prono"/>
		<table border="0" width="675px" height="50">
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">옵션명</th>
				<td><b><form:input path="type" value="cpu" readonly="true" /></b></td>
				<th align="center">상품명</th>
				<td><form:input path="product" size="50px" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">갯수</th>
				<td><form:input path="p_number" /></td>
				<th align="center">가격</th>
				<td><form:input path="price" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">제품 제조회사</th>
				<td><form:select path="manufacturer">
						<form:option value="INTEL">INTEL</form:option>
						<form:option value="AMD">AMD</form:option>
					</form:select></td>
				<th align="center">제품등록일</th>
				<td><form:input path="rgdate" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
		</table>

		<div id="product_title">
			<img src="/jeons/images/titledot.gif" />제품 옵션
		</div>
		<table border="0" width="675px" height="50">
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<%-- 	<tr>
				<th height="24" align="center">코어갯수</th>
				<td><b><form:input path="corenumber" /></b></td>
				<th  align="center">코드명</th>
				<td><form:input path="codename" /></td>
			</tr> --%>
			<tr>
				<th height="24" align="center">코어갯수</th>
				<td><form:select path="corenumber">
						<form:option value="듀얼코어(2core)">듀얼코어(2core)</form:option>
						<form:option value="쿼드코어(4core)">쿼드코어(4core)</form:option>
					</form:select></td>
				<th align="center">코드명</th>
				<td><form:input path="codename" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">소켓타입</th>
				<td><form:input path="prisetype" /></td>
				<th align="center">패키지</th>
				<td><form:input path="parcel" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">동작쿨럭</th>
				<td><form:input path="motion" /></td>
				<th align="center">win가상화</th>
				<td><form:input path="win" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">모델명</th>
				<td><form:input path="modelname" /></td>
				<th align="center">fsb</th>
				<td><form:input path="fsb" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">캐쉬</th>
				<td><form:input path="cash" /></td>
				<th align="center">제조공정</th>
				<td><form:input path="process" /></td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
		</table>
		<br>
		<div id = uplod>
		<div id="product_title">
			<img src="/jeons/images/titledot.gif" />이미지 업로드
		</div>
		<table border="0" width="675px" height="50">
			<tr>
				<td colspan="2" bgcolor="#000000" height="1"></td>
			</tr>
			<tr>
				<th height="24" align="center">작은 이미지</th>
				<td><input type="file" class="multi" name="listimg"
					maxlength="1" />한개의 이미지만 업로드 가능합니다.</td>
			</tr>
			<tr>
				<th align="center">상세 이미지</th>
				<td><input type="file" class="multi" name="dteilimg"
					maxlength="1" />한개의 이미지만 업로드 가능합니다.</td>
			</tr>
			<tr>
				<td colspan="4" bgcolor="#000000" height="1"></td>
			</tr>
		</table>
		</div>
		<br>
		<input type="submit" value="확인" />

	</form:form>
</div>
